package com.example.loginandpaytools.common;

import com.example.loginandpaytools.Support.Configuration;
import com.example.loginandpaytools.bean.Order;


/**
 * Created by linsawako on 2017/2/22.
 */

public class Config {

    /*需要post的参数*/

    private static Order.Builder getOrderBuilder() {
        return new Order.Builder()
                .setGame_id(Configuration.getGameId())
                .setPackage_name(Configuration.getPackageName())
                .setToken(Configuration.getTOKEN())
                .setUid(Configuration.getUID())
                .setServer_id(Configuration.getServerId())
                .setRole_id(Configuration.getRoleId())
                .setRole_name(Configuration.getRoleName())
                .setRole_level(Configuration.getRoleLevel());
    }

    public static void setOrder(String order_name, String order_num, int total_fee) {
        Order.Builder orderBuilder = Config.getOrderBuilder();

        orderBuilder.setOrder_name(order_name)
                .setOrder_num(order_num)
                .setTotal_fee(total_fee);

        Config.order = orderBuilder.create();
    }

    public static Order order;

    public static int payType;

    public static String platform_order_num;

    public static String fab_token;

    public static String account_url;

    public static String bbs_url;

    public static String chat_url;

    public final static String SIGN_KEY = "HSF&$G*BHJ#KGEF(#@";

}
